export class Scheduler {
  actionScheduler: any
  constructor(actionScheduler: any) {
    // 接收事件调度类
    this.actionScheduler = actionScheduler
  }
  schedule(work: any, delay: number = 0, state?: any) {
    // 将处理函数传递进事件调度处理中
    return new this.actionScheduler(work).schedule(state, delay)
  }
}